package com.kaili.tms.pojo.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 网点管理表
 * </p>
 *
 * @author zhangjl
 * @since 2018-04-26
 */
@TableName("basic_site")
public class BasicSite extends CommonVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 网点ID
     */
    @TableId(value = "site_id", type = IdType.AUTO)
    private Long siteId;
    /**
     * 网点编号
     */
    @TableField("site_code")
    @Excel(name = "网点编号", orderNum = "1")
    private String siteCode;
    /**
     * 网点名称
     */
    @TableField("site_name")
    @Excel(name = "网点名称", orderNum = "2")
    private String siteName;
    /**
     * 名称拼音
     */
    @TableField("site_pingyin")
    private String sitePingyin;
    /**
     * 区县
     */
    @TableField("county_id")
    private Integer countyId;
    /**
     * 省份
     */
    @TableField("province_id")
    private Integer provinceId;
    /**
     * 城市
     */
    @TableField("city_id")
    @Excel(name = "所在城市", orderNum = "3")
    private Integer cityId;
    /**
     * 地址
     */
    @Excel(name = "地址", orderNum = "5")
    private String address;
    /**
     * 联系人
     */
    @Excel(name = "联系人", orderNum = "4")
    private String contacts;
    /**
     * 联系人电话
     */
    @TableField("contacts_phone")
    private String contactsPhone;
    /**
     * 是否分拨 0 否分拨 1分拨
     */
    @TableField("is_dist_dept")
    private Integer isDistDept;
    /**
     * 数据状态 0 删除 1正常
     */
    @TableField("rd_status")
    private Integer rdStatus;


    /**
     * 创建时间
     */
    @Excel(name ="创建时间" , orderNum = "6", format = "yyyy-MM-dd HH:mm:ss")
    public Date createTime;

    //经度
    @TableField("longitude")
    private String longitude;
    //纬度
    @TableField("latitude")
    private String latitude;


    //返回参数集
    private String provinceName;
    private String cityName;
    private String countyName;
    private String createByName;
    private String modifyByName;


    public Long getSiteId() {
        return siteId;
    }

    public void setSiteId(Long siteId) {
        this.siteId = siteId;
    }

    public String getSiteCode() {
        return siteCode;
    }

    public void setSiteCode(String siteCode) {
        this.siteCode = siteCode;
    }

    public String getSiteName() {
        return siteName;
    }

    public void setSiteName(String siteName) {
        this.siteName = siteName;
    }

    public String getSitePingyin() {
        return sitePingyin;
    }

    public void setSitePingyin(String sitePingyin) {
        this.sitePingyin = sitePingyin;
    }

    public Integer getCountyId() {
        return countyId;
    }

    public void setCountyId(Integer countyId) {
        this.countyId = countyId;
    }

    public Integer getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Integer provinceId) {
        this.provinceId = provinceId;
    }

    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public String getContactsPhone() {
        return contactsPhone;
    }

    public void setContactsPhone(String contactsPhone) {
        this.contactsPhone = contactsPhone;
    }

    public Integer getIsDistDept() {
        return isDistDept;
    }

    public void setIsDistDept(Integer isDistDept) {
        this.isDistDept = isDistDept;
    }

    public Integer getRdStatus() {
        return rdStatus;
    }

    public void setRdStatus(Integer rdStatus) {
        this.rdStatus = rdStatus;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getCountyName() {
        return countyName;
    }

    public void setCountyName(String countyName) {
        this.countyName = countyName;
    }

    public String getCreateByName() {
        return createByName;
    }

    public void setCreateByName(String createByName) {
        this.createByName = createByName;
    }

    public String getModifyByName() {
        return modifyByName;
    }

    public void setModifyByName(String modifyByName) {
        this.modifyByName = modifyByName;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "BasicSite{" +
        ", siteId=" + siteId +
        ", siteCode=" + siteCode +
        ", siteName=" + siteName +
        ", sitePingyin=" + sitePingyin +
        ", countyId=" + countyId +
        ", provinceId=" + provinceId +
        ", cityId=" + cityId +
        ", address=" + address +
        ", contacts=" + contacts +
        ", contactsPhone=" + contactsPhone +
        ", isDistDept=" + isDistDept +
        ", rdStatus=" + rdStatus +
        "}";
    }

}
